#include "StdAfx.h"
#include "StringEntityParameter.h"


const std::string StringEntityParameter::TYPE_NAME = "string";

StringEntityParameter::StringEntityParameter(std::string name)
{
	paramValue ="";
	type = StringEntityParameter::TYPE_NAME;
	this->name = name;
}

StringEntityParameter::StringEntityParameter(std::string name,std::string value)
{
	paramValue =value;
	type = StringEntityParameter::TYPE_NAME;
	this->name = name;
}


StringEntityParameter::~StringEntityParameter(void)
{
}



std::string StringEntityParameter::getStringValue()
{

	return paramValue;
}

void StringEntityParameter::setStringValue(std::string value)
{
	paramValue = value;
}

void* StringEntityParameter::getValue()
{
	return (void*)&paramValue;
}

void StringEntityParameter::setValue(void* value)
{
	paramValue = (*(std::string*)value);
}


int StringEntityParameter::operator-(EntityParameter &param)
{
	//std::string value((char*)param.getValue());
	return (int)(paramValue == (*(std::string*)param.getValue()));
}